You can check IPImageWasModified property at any time to determine whether the image was modified by the last processing action. (If an error occurs during processing, the processing action is discontinued and the image is not modified.)
Enable Undo Capability
The Undo capability enables you to undo the action of a processing method. To use the Undo capability:
- Make sure UndoEnabled property is set to True. This enables the undo feature for a specific image, prior to performing image processing.
When UndoEnabled is True, additional memory is required to store the undo image. If Undo is not needed, set UndoEnabled to False, to reduce memory usage. |
Undo a Processing Action
- To undo the image processing action, call the Undo method. The current DIB (hDIB) is replaced with the Undo DIB (hDIBUndo), restoring the image to its original state. The hDIBUndo property is set to NULL.
Only image processing actions can be undone. Changes to ICM, loading and saving cannot be undone. |